package com.yale.spring.cloud.feigin.api;

import com.yale.spring.cloud.commons.OpenResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author yale
 */
public interface CodeService {

    String generateCode(String mailTo);

    Boolean verifyCode(String mail, String code);

}
